package com.wandian.news.tools;

import com.mylib.libcore.utils.UIUtils;

/**
 * @Author: cl
 * @CreateDate: 2020/11/27 11:48
 * @UpdateRemark:
 */
public class NewsCommonTool {
    public static String titleToKey(String title) {
        String value="";
        if(!UIUtils.isEmpty(title)){
            switch (title){
                case "国内新闻":
                    value = "guonei";
                    break;
                case "国际新闻":
                    value = "world";
                    break;
                case "财经新闻":
                    value = "caijing";
                    break;
                case "军事新闻":
                    value = "military";
                    break;
                case "科技新闻":
                    value = "keji";
                    break;
                case "IT新闻":
                    value = "it";
                    break;
                case "汽车新闻":
                    value = "auto";
                    break;
                case "娱乐新闻":
                    value = "huabian";
                    break;
                case "体育新闻":
                    value = "tiyu";
                    break;
                case "健康知识":
                    value = "health";
                    break;
                case "头条新闻":
                    value = "topnews";
                    break;
                case "科学探索":
                    value = "sicprobe";
                    break;
                case "环保资讯":
                    value = "huanbao";
                    break;
                case "币圈资讯":
                    value = "digiccy";
                    break;
                case "房产新闻":
                    value = "house";
                    break;
                case "地区新闻":
                    value = "areanews";
                    break;
                case "综合新闻":
                    value = "generalnews";
                    break;
                case "农业新闻":
                    value = "nongye";
                    break;
                case "动漫资讯":
                    value = "dongman";
                    break;
                case "CBA新闻":
                    value = "cba";
                    break;
                case "人工智能":
                    value = "ai";
                    break;
                case "区块链新闻":
                    value = "blockchain";
                    break;
                case "旅游资讯":
                    value = "travel";
                    break;
                case "移动通信":
                    value = "mobile";
                    break;
                case "苹果新闻":
                    value = "apple";
                    break;
                case "创业新闻":
                    value = "startup";
                    break;
                case "NBA新闻":
                    value = "nba";
                    break;
                case "社会新闻":
                    value = "social";
                    break;
            }
        }
       return value;
    }
}
